home *** CD-ROM | disk | FTP | other *** search
- on vidSwitch theSound
- global gPlayBtnSprite
-
- global gMoviePlaying
-
- -- assign the sprite channel where the mouse click occured
- set channel = the clickOn
-
- -- puppet video sprites, true
- repeat with i = 10 to 13
- puppetsprite i, true
- end repeat
-
- -- check to see if passed argument
- if theSound <> "none" then
- -- make the sound channel a puppet, overriding any sound in the
- -- sound channel of the score and play the arg castmember sound
- puppetSound theSound
- end if
-
- set theCast = the name of cast( the castNum of sprite channel )
-
- -- casts are: Eng-english text; kanji-kanji text; kana-kana text
- -- play-video play; voice-audio on; back-prrevious phrase;
- -- repeat-current phrase ; next-following phrase.
- -- cast suffixes are: Down-unselected&pressed; SelDown-selected & pressed;
- -- SelUp-selected & unpressed; Up-unselected&unpressed;
-
- case theCast of
-
- "engUp":
- -- show english text only with japanese audio
- if not ( the castNum of sprite 13 = (the number of cast "voiceUp") ) then
- set the castNum of sprite 13 to (the number of cast "voiceUp")
- voicNih
- end if
- set the castNum of sprite 10 to (the number of cast "engDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite 10 to (the number of cast "engSelUp")
- set the castNum of sprite 11 to (the number of cast "kanjiUp")
- set the castNum of sprite 12 to (the number of cast "kanaUp")
- textEng
- updateStage
-
- "engSelUp":
- set the castNum of sprite 10 to (the number of cast "engSelDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite 10 to (the number of cast "engUp")
- set the castNum of sprite 11 to (the number of cast "kanjiUp")
- set the castNum of sprite 12 to (the number of cast "kanaUp")
- textNon
- updateStage
- "kanjiUp":
- set the castNum of sprite 11 to (the number of cast "kanjiDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite 10 to (the number of cast "engUp")
- set the castNum of sprite 11 to (the number of cast "kanjiSelUp")
- set the castNum of sprite 12 to (the number of cast "kanaUp")
- textKji
- updateStage
- "kanjiSelUp":
- set the castNum of sprite 11 to (the number of cast "kanjiSelDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite 10 to (the number of cast "engUp")
- set the castNum of sprite 11 to (the number of cast "kanjiUp")
- set the castNum of sprite 12 to (the number of cast "kanaUp")
- textNon
- updateStage
- "kanaUp":
- set the castNum of sprite 12 to (the number of cast "kanaDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite 10 to (the number of cast "engUp")
- set the castNum of sprite 11 to (the number of cast "kanjiUp")
- set the castNum of sprite 12 to (the number of cast "kanaSelUp")
- textKan
- updateStage
- "kanaSelUp":
- set the castNum of sprite 12 to (the number of cast "kanaSelDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite 10 to (the number of cast "engUp")
- set the castNum of sprite 11 to (the number of cast "kanjiUp")
- set the castNum of sprite 12 to (the number of cast "kanaUp")
- textNon
- updateStage
- "voiceUp":
- -- turn off english text on english voiceover
- if ( the castNum of sprite 10 = (the number of cast "engSelUp") ) then
- textNon
- updateStage
- set the castNum of sprite 10 to (the number of cast "engUp")
- end if
- set the castNum of sprite 13 to (the number of cast "voiceDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite 13 to (the number of cast "voiceSelUp")
- voicEng
- updateStage
- "voiceSelUp":
- set the castNum of sprite 13 to (the number of cast "voiceSelDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite 13 to (the number of cast "voiceUp")
- voicNih
- updateStage
- "playUp":
- set the castNum of sprite gPlayBtnSprite to ¬
- (the number of cast "playDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite gPlayBtnSprite to ¬
- (the number of cast "playSelUp")
- qtPlay
- set gMoviePlaying = 1
- updateStage
- "playSelUp":
- set the castNum of sprite gPlayBtnSprite to ¬
- (the number of cast "playSelDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite gPlayBtnSprite to ¬
- (the number of cast "playUp")
- qtPause
- set gMoviePlaying = 0
- updateStage
- end case
-
- -- puppet video sprites, false
- -- repeat with i = 10 to 13
- -- puppetsprite i, false
- -- end repeat
-
- end vidSwitch
-
- ------------------------------------------------------------------------
- on textEng
- global DEBUG
- global gPcVidSprite
-
- set DEBUG = 1
-
- if DEBUG then put "English Gl"
- textNon
- setTrackEnabled(sprite gPcVidSprite, 5, TRUE)
-
- set DEBUG = 0
-
- end textEng
-
- ------------------------------------------------------------------------
- on textNon
- global DEBUG
- global gPcVidSprite
-
- setTrackEnabled(sprite gPcVidSprite, 4, FALSE)
- setTrackEnabled(sprite gPcVidSprite, 5, FALSE)
- setTrackEnabled(sprite gPcVidSprite, 6, FALSE)
-
- end textNon
-
- ------------------------------------------------------------------------
- on textKji
- global DEBUG
- global gPcVidSprite
-
- if DEBUG then put "Japanese Gl"
- textNon
- setTrackEnabled(sprite gPcVidSprite, 4, TRUE)
-
- end textKji
-
- ------------------------------------------------------------------------
- on textKan
- global DEBUG
- global gPcVidSprite
-
- if DEBUG then put "Kana Gl"
- textNon
- setTrackEnabled(sprite gPcVidSprite, 6, TRUE)
-
- end textKan
-
- ------------------------------------------------------------------------
- on voicEng
- global DEBUG
- global gPcVidSprite
-
- if DEBUG then put "SelectAudioTrack 2"
- setTrackEnabled(sprite gPcVidSprite, 2, FALSE)
- setTrackEnabled(sprite gPcVidSprite, 3, TRUE)
-
- end voicEng
-
- ------------------------------------------------------------------------
- on voicNih
- global DEBUG
- global gPcVidSprite
-
- if DEBUG then put "SelectAudioTrack 1"
- setTrackEnabled(sprite gPcVidSprite, 3, FALSE)
- setTrackEnabled(sprite gPcVidSprite, 2, TRUE)
-
- end voicNih
-
- ------------------------------------------------------------------------
- on FNswitch theSound
-
- global gPlayBtnSprite, gFNEngBtnSprite
-
- -- assign the sprite channel where the mouse click occured
- set channel = the clickOn
-
- -- puppet video sprites, true
- repeat with i = 10 to 13
- puppetsprite i, true
- end repeat
-
- -- check to see if passed argument
- if theSound <> "none" then
- -- make the sound channel a puppet, overriding any sound in the
- -- sound channel of the score and play the arg castmember sound
- puppetSound theSound
- end if
-
- set theCast = the name of cast( the castNum of sprite channel )
-
- case theCast of
-
- "engOffUp":
- -- turn off english text on english voiceover
- set the castNum of sprite gFNEngBtnSprite = (the number of cast "engOffDown")
- updateStage
-
- repeat while the stilldown
- end repeat
-
- set the castNum of sprite gFNEngBtnSprite to (the number of cast "engOnUp")
- voicEng
- updateStage
-
- "engOnUp":
- set the castNum of sprite gFNEngBtnSprite to (the number of cast "engOnDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite gFNEngBtnSprite to (the number of cast "engOffUp")
- voicNih
- updateStage
-
- "FNplayUp":
- set the castNum of sprite gPlayBtnSprite to (the number of cast "FNplayDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite gPlayBtnSprite to (the number of cast "FNpauseUp")
- updateStage
-
- "FNpauseUp":
- set the castNum of sprite gPlayBtnSprite to (the number of cast "FNpauseDown")
- updateStage
- repeat while the stilldown
- end repeat
- set the castNum of sprite gPlayBtnSprite to (the number of cast "FNplayUp")
- updateStage
-
- end case
-
- end FNswitch
- ------------------------------------------------------------------------
-